package com.ojoin.trade.common_core.web.service;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.service.BaseService;
import com.ojoin.trade.common_core.web.domain.TbMerchantInfo;

import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-11-17
 * Time: 上午10:18
 * To change this template use File | Settings | File Templates.
 */
public interface TbMerchantInfoBaseService extends BaseService<TbMerchantInfo>{

    public int addTbMerchantInfo(TbMerchantInfo info)throws BusinessException;

    public void updateTbMerchantInfoBySelective(TbMerchantInfo query)throws BusinessException;

    public void  updateTbMerchentInfoByVo(TbMerchantInfo info)throws BusinessException;

    public TbMerchantInfo queryInfoByJoinId(int joinid)throws BusinessException;

    public TbMerchantInfo selectRealnameInfoByJoinid(int joinid) throws BusinessException;
    
    public TbMerchantInfo queryInfoByMhtno(String mhtno) throws BusinessException;
    
    public List<TbMerchantInfo> queryAllTbMerchantInfo(Pageable page)throws BusinessException;

    public void pushAndSyncRealName(int joinuserid) throws BusinessException;
    
    public void pushRealInfoByJoinuserId(int joinuserid, int realStatus)throws BusinessException;

    public int updateMhtnoByJoinuserId(int joinuserid, String mhtno)
			throws BusinessException;
    
    public List<TbMerchantInfo> queryByNameVague(String name) throws BusinessException;
    
    public void syncRealName(int joinuserid) throws BusinessException;
    
}
